package com.zhxq.ai.service;

import com.alibaba.dashscope.aigc.multimodalconversation.MultiModalConversationResult;
import com.alibaba.dashscope.exception.ApiException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.alibaba.dashscope.exception.UploadFileException;
import io.reactivex.Flowable;
import reactor.core.publisher.Flux;

public interface TTSService {

    public String call(String text) throws ApiException, NoApiKeyException, UploadFileException;

    public Flowable<MultiModalConversationResult> streamCall(String text) throws ApiException, NoApiKeyException, UploadFileException;

    public void streamInputOutput(Flowable<String> inputStream, String chatId) throws ApiException, NoApiKeyException, UploadFileException;
}
